package beans

import models.UserM

data class User(
        val id: Int?,
        val username: String,
        val pwd: String,
        val phone: String
){
    companion object{
        fun formModel(model: UserM): User{
            return User(model.getInt(UserM.ID), model[UserM.USERNAME], "", model[UserM.PHONE])
        }
    }
}